home *** CD-ROM | disk | FTP | other *** search
/ One Click 21 (Special) / OC021.iso / Juegos / flashstrike / flashstrike.swf / scripts / DefineButton2_238 / BUTTONCONDACTION on(press).as
Encoding:
Text File  |  2006-02-03  |  474 b   |  22 lines

  1. on(press){
  2.    trace("headshot");
  3.    if(_root.hiding == "no")
  4.    {
  5.       if(_root.reloading == "no")
  6.       {
  7.          if(_root.ammo >= 0)
  8.          {
  9.             if(_root.zoomed == 1)
  10.             {
  11.                _root.sight.gotoAndPlay("headshot");
  12.                _root.kills += 1;
  13.                this.play();
  14.             }
  15.             _root.sight.gotoAndPlay("headshot");
  16.             _root.kills += 1;
  17.             this.play();
  18.          }
  19.       }
  20.    }
  21. }
  22.